﻿<?
session_start();
header("Content-type: text/html; charset=utf-8");

/* ecom 网站模式, cart商城, web普通网站 */

$ecom = 'cart';
//$ecom = 'web';

/* gear 开发状态, 1上线, 0测试 */
$gear = 0;

switch($gear){
	case 1:
	error_reporting(0);
	$baseurl = "http://m.ecomgear.com/"; // site url 网站根目录网址
	$db_host = "localhost";
	$db_port = 3306;
	$db_user = "root";
	$db_password = "ecomgear4321";
	$db_database = "web";
	$db_prefix='';
	break;
	
	case 0:
	error_reporting(E_ALL);
	$baseurl = "http://localhost:8080/cart0401/";
	$db_host = "localhost";
	$db_port = 3306;
	$db_user = "cart0401";
	$db_password = "cart04014321";
	$db_database = "cart0401";
	$db_prefix='';
	break;
}

// time zone 时区
date_default_timezone_set('Asia/Hong_Kong');

// file path 
define("ROOT", dirname(dirname(__FILE__)).'/'); // flie path of website 
define("VIEW", ROOT.$ecom.'/view/');
define("ROOTVIEW", ROOT.'root/view/');
define("ROOTUSERID",1);
